From 16998b8d9c0011791e5a5d3a234265971a582e0b Mon Sep 17 00:00:00 2001 From: "cl349@arcadians.cl.cam.ac.uk" Date: Thu, 18 Nov 2004 17:41:07 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.435 (419cdeb3cXJd9VFQG3qEgk4aMdlboA) Increase number of cpus limits. --- tools/libxc/xc_linux_build.c | 2 +- xen/include/public/xen.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/libxc/xc_linux_build.c b/tools/libxc/xc_linux_build.c index 24c4b2bb23..062e0242b5 100644 --- a/tools/libxc/xc_linux_build.c +++ b/tools/libxc/xc_linux_build.c @@ -335,7 +335,7 @@ static int setup_guestos(int xc_handle, /* Mask all upcalls... */ for ( i = 0; i < MAX_VIRT_CPUS; i++ ) shared_info->vcpu_data[i].evtchn_upcall_mask = 1; - shared_info->n_vcpu = 2; + shared_info->n_vcpu = 8; munmap(shared_info, PAGE_SIZE); /* Send the page update requests down to the hypervisor. */ diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h index d78e5f13b5..2ec859f8d5 100644 --- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -251,8 +251,8 @@ typedef struct /* Event channel endpoints per domain. */ #define NR_EVENT_CHANNELS 1024 -/* No support for multi-processor guests. */ -#define MAX_VIRT_CPUS 4 +/* Support for multi-processor guests. */ +#define MAX_VIRT_CPUS 32 /* * Per-VCPU information goes here. This will be cleaned up more when Xen -- 2.30.2